
@mixin animation($transition-property, $transition-duration, $transition-timing) {
transition-property: $transition-property;transition-duration: $transition-duration;transition-timing-function: $transition-timing;-moz-transition-property:$transition-property;-moz-transition-duration: $transition-duration;-moz-transition-timing-function:$transition-timing;-webkit-transition-property:$transition-property;-webkit-transition-duration: $transition-duration;-webkit-transition-timing-function:$transition-timing;-o-transition-property:$transition-property;-o-transition-duration: $transition-duration;-o-transition-timing-function:$transition-timing;-ms-transition-property:$transition-property;
-ms-transition-duration: $transition-duration;-ms-transition-timing-function:$transition-timing;
}
@mixin boxsizing() {
-moz-box-sizing:    border-box;   -webkit-box-sizing: border-box;    box-sizing:        border-box;
}

$transition-property: all;
$transition-duration: 0.3s;
$transition-timing: ease-out;
$classmain : ".scroller-con";
$classcon : ".videogallery-con";

/*functional styling*/
#{$classmain}{
	position: relative;
	overflow: hidden;
  width: 100%;
  height:200px;
}

#{$classmain} .scroller{
	overflow: hidden;
	position: absolute;
	left:0;
	top:0;
}

#{$classmain} .inner{
	position: absolute!important;
}
#{$classmain} .real-inner{
	position: absolute;
	top:0;
	left:0;
}
$transition-property: left,top;
$transition-duration: 0.3s;
$transition-timing: ease-out;
#{$classmain}.easing .inner{
@include animation($transition-property, $transition-duration, $transition-timing)
}
$transition-property: left,top;
$transition-duration: 0.7s;
$transition-timing: ease-out;
#{$classmain} .scrollbar.easing > *{
  @include animation($transition-property, $transition-duration, $transition-timing)
}

#{$classmain} .scrollbary{
	position: absolute;
	cursor: pointer;
}

#{$classmain} .scrollbary_bg{
	position: absolute;
	cursor: pointer;
}



#{$classmain} .scrollbarx{
	position: absolute;
	cursor: pointer;
}

#{$classmain} .scrollbarx_bg{
	position: absolute;
	cursor: pointer;
}







/*estethic styling*/
#{$classmain}{
	margin: 10px 0 40px;
}



$classmain : ".scroller-con.skin_default";

/*Skin 1*/
#{$classmain} .scrollbarx{
	width: 60px;
	height: 7px;
	left: 0;
	bottom: -10px;
	background: #5896c6;
	border-radius:2px;
}
#{$classmain} .scrollbarx_bg{
	height: 7px;
	left: 0;
	bottom: -10px;
	background: #eee;
	border-radius:5px;
}
#{$classmain} .scrollbary{
	width: 7px;
	height: 60px;
	top: 0;
	right: -12px;
	background: #5896c6;
	border-radius:2px;
}
#{$classmain} .scrollbary_bg{
	width: 7px;
	top: 0;
	right: -12px;
	background: #eee;
	border-radius:5px;
}


$classmain : ".scroller-con.skin_alternate";
/*Skin 2*/
#{$classmain} .scrollbarx{
	width: 500px;
	height: 30px;
	left: 0;
	bottom: -30px;
	background: yellow;
}
#{$classmain} .scrollbarx_bg{
	height: 30px;
	left: 0;
	bottom: -30px;
	background: #000;
}

#{$classmain} .scrollbary{
	width: 7px;
	height: 60px;
	top: 0;
	right: -10px;
	background: transparent url('styleimg/scroller1.png');
}
#{$classmain} .scrollbary_bg{
	width: 7px;
	top: 0;
	right: -10px;
	background: #eee;
}



$classmain : ".scroller-con.skin_blackwhite";
/*Skin 3*/
#{$classmain}{
	margin-top:30px;
}
#{$classmain} .scrollbarx{
	position: absolute;
	width: 35px;
	height: 10px;
	left: 0;
	top: -15px;
	background: url('styleimg/s3scrollerx.png');
	cursor: pointer;
}
#{$classmain} .scrollbarx_bg{
	position: absolute;
	height: 1px;
	left: 0;
	top: -10px;
	background: #eee;
	cursor: pointer;
}

#{$classmain} .scrollbary{
	width: 10px;
	height: 35px;
	top: 0;
	right: -15px;
	background: url('styleimg/s3scrollery.png');
}
#{$classmain} .scrollbary_bg{
	position: absolute;
	width: 1px;
	top: 0;
	right: -10px;
	background: #fff;
	cursor: pointer;
}








$classmain : ".scroller-con.skin_progress";

/*Skin Progress*/

#{$classmain} .scrollbarx{
	width: 60px;
	height: 19px;
	left: 0;
	bottom: -20px;
	background-image: url('styleimg/progress.png');
	border-radius:15px;
}
#{$classmain} .scrollbarx_bg{
	height: 19px;
	left: 0;
	bottom: -20px;
	background: #191d21;
	border-radius:15px;
	border:1px solid #1a1a1a;
	box-shadow:0 0 4px 0px rgba(0,0,0,0.3);
	-moz-box-sizing:    border-box;   -webkit-box-sizing: border-box;    box-sizing:        border-box;
}
#{$classmain} .scrollbary{
	width: 19px;
	height: 60px;
	top: 0;
	right: -28px;
	background-image: url('styleimg/progressy.png');
	border-radius:15px;
}
#{$classmain} .scrollbary_bg{
	width: 19px;
	top: 0;
	right: -28px;
	background: #191d21;
	border-radius:15px;
	border:1px solid #1a1a1a;
	box-shadow:0 0 4px 0px rgba(0,0,0,0.3);
	-moz-box-sizing:    border-box;   -webkit-box-sizing: border-box;    box-sizing:        border-box;
}





$classmain : ".scroller-con.skin_slider";

/*skin slider*/

#{$classmain} .scrollbarx{
	width: 60px;
	height: 7px;
	left: 0;
	bottom: -10px;
	background: #5896c6;
	border-radius:2px;
}
#{$classmain} .scrollbarx_bg{
	height: 7px;
	left: 0;
	bottom: -10px;
	background: #eee;
	border-radius:5px;
}
#{$classmain} .scrollbary{
	width: 30px;
	height: 30px;
	top: 0;
	right: -30px;
	background-image: url('styleimg/handle.png');
	background-repeat:no-repeat;
	background-position:center center;
}
#{$classmain} .scrollbary_bg{
	width: 7px;
	top: 0;
	right: -18px;
	background: #282a31;
	border-radius:15px;
	border:1px solid #1a1a1a;
	box-shadow:0 0 4px 0px rgba(0,0,0,0.3);
	-moz-box-sizing:    border-box;   -webkit-box-sizing: border-box;    box-sizing:        border-box;
}




/*skin slider*/

#{$classmain} .scrollbarx{
	width: 30px;
	height: 30px;
	left: 0;
	bottom: -31px;
	background-color:transparent;
	background-image: url('styleimg/handle.png');
	background-repeat:no-repeat;
	background-position:center center;
}
#{$classmain} .scrollbarx_bg{
	height: 7px;
	left: 0;
	bottom: -20px;
	background: #282a31;
	border-radius:15px;
	border:1px solid #1a1a1a;
	box-shadow:0 0 4px 0px rgba(0,0,0,0.3);
	-moz-box-sizing:    border-box;   -webkit-box-sizing: border-box;    box-sizing:        border-box;
}
#{$classmain} .scrollbary{
	width: 30px;
	height: 30px;
	top: 0;
	right: -30px;
	background-image: url('styleimg/handle.png');
	background-repeat:no-repeat;
	background-position:center center;
}
#{$classmain} .scrollbary_bg{
	width: 7px;
	top: 0;
	right: -18px;
	background: #282a31;
	border-radius:15px;
	border:1px solid #1a1a1a;
	box-shadow:0 0 4px 0px rgba(0,0,0,0.3);
	-moz-box-sizing:    border-box;   -webkit-box-sizing: border-box;    box-sizing:        border-box;
}









$classmain : ".scroller-con.skin_apple";


/*======skin apple*/

#{$classmain} .scrollbarx{
	width: 90px;
	height: 8px;
	left: 0;
	bottom: -15px;
	background:rgba(0,0,0,0.5);
	border-radius:10px;
}
#{$classmain} .scrollbarx_bg{
	height: 0px;
}
#{$classmain} .scrollbary{
	width: 8px;
	height: 90px;
	top: 0;
	right: 0px;
	background:rgba(0,0,0,0.5);
	border-radius:10px;
}


$transition-property: all;
$transition-duration: 0.3s;
$transition-timing: ease-out;
#{$classmain} .scrollbary_bg{
	width: 8px;
  right:0;
  background: rgba(255,255,255,0);
  @include animation($transition-property, $transition-duration, $transition-timing)
}
#{$classmain} .scrollbar:hover .scrollbary_bg, #{$classmain} .scrollbar.dragging .scrollbary_bg{
  background: rgba(255,255,255,0.3);
}

$classmain : ".scroller-con.skin_pez";

#{$classmain}{
    margin:0; 
    }
    
    
    
#{$classmain} .scrollbarx{
	width: 60px;
	height: 21px;
	left: 0;
	bottom: 0px;
    background-color: transparent;
	background: url(./styleimg/skinpez_draggerx.png) no-repeat center center transparent;
	border-radius:2px;
}
#{$classmain} .scrollbarx_bg{
	height: 21px;
	left: 0;
	bottom: 0px;
    background-color: transparent;
	background: url(./styleimg/skinpez_bg.png) repeat-x scroll 0 0 transparent;
}
#{$classmain} .scrollbary{
	width: 7px;
	height: 60px;
	top: 0;
	right: -12px;
	background: #5896c6;
	border-radius:2px;
}
#{$classmain} .scrollbary_bg{
	width: 7px;
	top: 0;
	right: -12px;
	background: #eee;
	border-radius:5px;
}



body.scroller-con{ overflow:hidden!important; margin-top:0!important;
}
body.scroller-con .inner{ width:100%;
}
body.scroller-con.skin_blackwhite .scrollbary{ right:0;
}
body.scroller-con.skin_blackwhite .scrollbary_bg{ right:5px;
}






.scroller-gallery{
	position:relative;
}
.scroller-gallery .desc{
	position:absolute;
	top:0;
	left:-100%;
	width:100%;
	height:100%;
	background:rgb(0,0,0);
	background:rgba(0,0,0,0.8);
}
.masonry > *{
	overflow:hidden;
}
.scroller-gallery a{ text-decoration:none; color: #fff; }
.scroller-gallery .desc > div{ padding:10px 15px; }
.scroller-gallery .desc .fake-link{ color:#09F; }
.scroller-gallery h5{ padding:10px 0; }
.icon{ width:9px; height:9px; position:absolute; top:20px; right:15px; background-repeat:no-repeat; background-position:50% 50%;  }
.icon.page { background-image: url('styleimg/page.png'); }
.icon.image { background-image: url('styleimg/image.png'); }
.icon.video { background-image: url('styleimg/video.png'); }


/*misc*/
.preloader{
	width: 50px;
	height: 50px;
	position: absolute;
	top: 50%;
	left: 50%;
	border-radius:10px;
	background:#fff url(./styleimg/preloader.gif) center no-repeat;
}
.fullwidth{ width:100%; }
.fullheight{ height:100%; }